! function(w){
	//html
	"use strict";
	if(w._hcinits==undefined){console.log('_crypto load _hcinits fail');return false;}
	w._hcinits._html={
		//html 转实体
		'html_encode':function(str){
			var s='';
			if(str.length==0) return "";
			s=str.replace(/&/g,"&amp;");
			s=str.replace(/</g,"&lt;");
			s=str.replace(/>/g,"&gt;");
			s=str.replace(/ /g,"&nbsp;");
			s=str.replace(/\'/g,"&#39");
			s=str.replace(/\"/g,"&quot;");
			s=str.replace(/~/g,"&#126;");
			return s;
		},
		//实体转html
		'html_decode':function(str){
			var s='';
			if(str.length==0) return "";
			s=str.replace(/&amp;/g,"&");
			s=str.replace(/&lt;/g,"<");
			s=str.replace(/&gt;/g,">");
			s=str.replace(/&nbsp;/g," ");
			s=str.replace(/&#39;/g,"\'");
			s=str.replace(/&quot;/g,"\"");
			s=str.replace(/&#126;/g,"~");
			return s;
		},
	}
}(window)